<template>
  <button @click="isShowDemo = !isShowDemo">切换/隐藏</button>
  <hr>
  <Demo v-if="isShowDemo"></Demo>
</template>

<script>
import { ref } from '@vue/reactivity';
import Demo from "./components/Demo.vue";

export default {
  name: 'App',
  components:{
    Demo
  },
  setup() {
    let isShowDemo = ref(true)

    return {isShowDemo}
  }
}
</script>
